class CategoriesController < ApplicationController
  layout "main"
  
  def list
    @body_id = "leechdoms"
    category = Category.find(params[:id])
    @leechdoms = category.leechdoms.paginate :page => params[:page], :per_page => 30
    @categories = Category.find(:all, :conditions => ["parent_id is null"])
  end
end
